class {
    onInput(input) {
        this.input = {
            name: input.name.toUpperCase()
        };
    }

    onMount() {
        var componentsLookup = window.components || (window.components = {});
        componentsLookup['onInput-assign-object'] = this;
    }
}

<div>
    Hello <span.name>${input.name}</span>!
</div>